//
//  SelectCityBt.m
//  Molian
//
//  Created by xiaocankeji on 16/2/2.
//  Copyright © 2016年 xiaocan. All rights reserved.
//

#import "SelectCityBt.h"
#define kLeftSpacing 5
#define kTopSpacing 5
#define kDownSpacing 10


@implementation SelectCityBt

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        CGFloat imgW = frame.size.width - 2* kTopSpacing;
        self.topImageView = [[UIImageView alloc] initWithFrame:CGRectMake(kLeftSpacing, kTopSpacing, imgW, imgW)];
        [self addSubview:self.topImageView];
        
        self.titleContentLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, frame.size.height - kDownSpacing-20, frame.size.width, 20)];
        self.titleContentLabel.textColor = RGBA(80, 80, 80, 1);
        self.titleContentLabel.textAlignment = NSTextAlignmentCenter;
        self.titleContentLabel.font = kFont(12);
        [self addSubview:self.titleContentLabel];
        
        //[self setBackgroundImage:[UIImage imageWithColor:[UIColor whiteColor]] forState:UIControlStateNormal];
      //  [self setBackgroundImage:[UIImage imageWithColor:RGBA(188, 188, 188, 1)] forState:UIControlStateHighlighted];
        
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/




@end
